package com.ruoyi.order.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.order.api.domain.Order;
import lombok.Data;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 订单评价对象 che_evaluate
 * 
 * @author yun
 * @date 2024-12-31
 */
@Data
public class Evaluate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单评价id */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 订单id */
    @Excel(name = "订单id")
    private Long orderId;
    private Order order;

    /** 综合评分（星级） */
    @Excel(name = "综合评分", readConverterExp = "星=级")
    private Long star;

    /** 评语 */
    @Excel(name = "评语")
    private String comments;

    /** 评级时间 */
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @Excel(name = "评级时间", width = 30, dateFormat = "yyyy-MM-dd hh:mm:ss")
    private Date commentTime;


    private String imgList;
    private List<EvaluateImage> imgItemList;
    private Boolean isImgChanged = false;

}
